#ifndef SEARCHBAR_H
#define SEARCHBAR_H

#include <QWidget>

namespace Jcr
{
class SearchBarPrivate;
class SearchBar : public QWidget
{
    Q_OBJECT
public:
    explicit SearchBar(QWidget *parent = 0);
    ~SearchBar();

public slots:
    void onDownloadEnabled(bool enabled);

signals:
    void downloadUrl(const QUrl& url);
    void parseUrl(const QUrl& url);
    void setDownloadCenterVisible(bool visible);
    void downloadSelectedItems();

private slots:
    void onButtonClicked(bool check);
    void onEditReturnPressed();

private:
    SearchBarPrivate* d_ptr;
    Q_DISABLE_COPY(SearchBar)
};

} // namespace jcr
#endif // SEARCHBAR_H
